package edu.sctu.wulixia.month6.day20150612;

import java.io.IOException;

/**
 * Created by user05 on 2015/6/12.
 */
public class PrintData {
    public static void main(String[] args)throws IOException
    {

    InputData inputData1 = new InputData();
        char oneChar = 0;
        System.out.println("输入信息：");
        //输入读取一个字符。以$结束
       while(oneChar != '$') {
           oneChar = (char)inputData1.data.read();
           System.out.println(oneChar);
        }

        InputData inputData2 = new InputData();
        String oneString = null;
        System.out.println("输入字符串：");
        System.out.println("以 end 结束！！");
        //输入读取一个字符串。以end结束
         do {
            oneString = inputData2.data.readLine();
            System.out.println(oneString);
        }while(! oneString.equals("end"));
    }
}
